package com.example.zhu.mapper;

import com.example.zhu.entity.ActivityRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ActivityRecordMapper {


    @Select("select * from activity_record")
    List<ActivityRecord> selectAll();

    @Insert("insert into activity_record(activity_id, openid, record_start_time, Record_finished) values (#{activityId},#{openid},#{recordStartTime},#{recordFinished})")
    void insert(ActivityRecord activityRecord);
}
